Controlling Robot Torque And Velocity Based On Context

ABSTRACT

In an embodiment, a method includes identifying a force and torque for a robot to accomplish a task and identifying context of a portion of a movement plan indicating motion of the robot to perform the task. Based on the identified force, torque, and context, a context specific torque is determined for at least one aspect of the robot while the robot executes the portion of the movement plan. In turn, a control signal is generated for the at least one aspect of the robot to operate in accordance with the determined context specific torque.

RELATED APPLICATION

This application claims the benefit of U.S. Provisional Application No. 62/730,934, filed on Sep. 13, 2018, U.S. Provisional Application No. 62/730,703, filed on Sep. 13, 2018, U.S. Provisional Application No. 62/730,947, filed on Sep. 13, 2018, U.S. Provisional Application No. 62/730,933, filed on Sep. 13, 2018, U.S. Provisional Application No. 62/730,918, filed on Sep. 13, 2018 and U.S. Provisional Application No. 62/731,398, filed on Sep. 14, 2018.

This application is related to U.S. Patent Application titled “Manipulating Fracturable And Deformable Materials Using Articulated Manipulators”, Attorney Docket No. 5000.1049-001; U.S. Patent Application titled “Food-Safe, Washable, Thermally-Conductive Robot Cover”, Attorney Docket No. 5000.1050-000; U.S. Patent Application titled “Food-Safe, Washable Interface For Exchanging Tools”, Attorney Docket No. 5000.1051-000; U.S. Patent Application titled “An Adaptor for Food-Safe, Bin-Compatible, Washable, Tool-Changer Utensils”, Attorney Docket No. 5000.1052-001; U.S. Patent Application titled “Locating And Attaching Interchangeable Tools In-Situ”, Attorney Docket No. 5000.1053-001; U.S. Patent Application titled “Determining How To Assemble A Meal”, Attorney Docket No. 5000.1054-001; U.S. Patent Application titled “Stopping Robot Motion Based On Sound Cues”, Attorney Docket No. 5000.1056-000; U.S. Patent Application titled “Robot Interaction With Human Co-Workers”, Attorney Docket No. 5000.1057-001; U.S. Patent Application titled “Voice Modification To Robot Motion Plans”, Attorney Docket No. 5000.1058-000; and U.S. Patent Application titled “One-Click Robot Order”, Attorney Docket No. 5000.1059-000, all of the above U.S. Patent Applications having a first named inventor David M. S. Johnson and all being filed on the same day, Sep. 13, 2019.

The entire teachings of the above applications are incorporated herein by reference.

BACKGROUND

Traditionally, the food industry employs human labor to manipulate ingredients with the purpose of either assembling a meal such as a salad or a bowl, or packing a box of ingredients such as those used in grocery shopping, or preparing the raw ingredients. Robots have not yet been able to assemble complete meals from prepared ingredients in a food-service setting such as a restaurant, largely because the ingredients are arranged unpredictably and change shape in difficult-to-predict ways rendering traditional methods to move material ineffective without extensive modifications to existing kitchens. Additionally, traditional material handling methods are ill-suited to moving cooked foods without altering their texture and taste-profile. These difficulties arise because the friction, stiction, and viscosity of commonly consumed foods cause auger, conveyor, and suction mechanisms to become clogged and soiled, while these mechanisms simultaneously impart forces on the foodstuffs which alter their texture, consistency, and taste-profile in unappetizing ways.

SUMMARY

A key reason robots have been unable to assemble meals in the quick service food restaurant setting is the inability of robots to operate in close proximity with humans while utilizing appropriate torques for the task and environment in which the robots are operating. For instance, scooping ice cream from a container may require substantial force and torque at the contact point of the disher with the ice cream. If a human were to have a hand caught between the utensil and the material, these forces and torques would cause substantial injury. Therefore, the robot should only be allowed to apply high torques when the context of the action is appropriate to do so. Additionally, by determining when an action is dangerous due to the forces and torques required, this information can be used to guide the response of the robot to other signals such as recognizing the presence of a human in the workspace, as described in U.S. Patent Application titled “Robot Interaction With Human Co-Workers”, Attorney Docket No. 5000.1057-001, and sounds which might indicate that an accident has occurred, as described in U.S. Patent Application titled “Stopping Robot Motion Based On Sound Cues”, Attorney Docket No. 5000.1056-000. This same problem, inability to utilize appropriate torque for the task and environment, occurs in numerous fields and environments beyond quick service food restaurants, including product manufacturing and assembly environments, amongst other examples. Embodiments solve these problems and provide functionality for determining context specific torques for robots.

It is noted that while embodiments are described herein as functioning in a restaurant food assembly setting, embodiments are not so limited. Functionality described herein can be employed in any variety of environments in which robot control is desired.

An example embodiment first identifies a force and torque for a robot to accomplish a task. Next, context of a portion of a movement plan indicating motion of the robot to perform the task is identified. To continue, based on the identified force, torque, and context, a context specific torque is determined for at least one aspect of the robot while the robot executes the portion of the movement plan. In turn, the embodiment generates a control signal for the at least one aspect of the robot to operate in accordance with the determined context specific torque.

Another embodiment further comprises controlling, based on the control signal, the at least one aspect of the robot to operate by limiting the at least one aspect of the robot to the determined context specific torque. In this way, the robot's torque does not exceed the context specific torque for the portion of the movement plan. In an embodiment, determining the context specific torque includes loading the context specific torque from a model of the robot, the task, and an environment in which the robot is operating to perform the task.

In embodiments, “context” may include any conditions related in any way to the robot. For example, context may include any data related to the robot, the task performed by the robot, the motion of the robot, and the environment in which the robot is operating, amongst other examples. According to an example embodiment, context is at least one of: (a) free space, (b) active contact, (c) collision, (d) anticipated collision, (e) a likelihood of accident during the portion of the movement plan based on standards for (1) speed and separation limits and (2) allowable harm, (f) the task performed by the robot, e.g., slicing, scooping, grasping, picking, or machining material, (g) a set of possible colliding objects, where each object has an object class, and the object class indicates a severity of a collision with the object, (h) a probability distribution of possible colliding objects, (i) a probability distribution of one or more possible world configurations, (j) a continuous distribution of world configurations, and (k) a continuous distribution of objects. According to an embodiment, at least one of the probability distribution of possible colliding objects, the probability distribution of one or more possible world configurations, the continuous distribution of world configurations, and the continuous distribution of objects indicates probability of contact between the robot and objects during the portion of the movement plan.

Embodiments may utilize a variety of different techniques to identify the context of the portion of the movement plan. In an embodiment, the context is identified by determining a likelihood of accident during the portion of the movement plan based on standards for (i) speed and separation limits and (ii) allowable harm. Another embodiment identifies the context by identifying expected resistance encountered by the robot during the portion of the movement plan using a model of an environment of the robot. Yet another embodiment identifies context by processing context data using a neural network trained to determine if contact occurs during the portion of the movement plan. In such an embodiment, the neural network is trained on labeled context data that is labeled to indicate if contact occurs under conditions of the labelled context data. According to another embodiment, identifying the context includes identifying physical objects in an environment of the robot to determine proximity of the robot to the physical objects during the portion of the movement plan. Further, embodiments may determine the context by analyzing a computer based model of an environment of the robot to determine proximity of the robot to physical objects during the portion of the movement plan. Yet another embodiment identifies the context by performing a computer-based simulation of an environment including the robot using (i) the movement plan, (ii) a computer-based model of the environment, and (iii) a computer-based model of the robot. The results of the simulation provide a prediction of motion of the robot during the portion of the movement plan. Embodiments may also identify the context by processing data related to at least one of: the robot, the task, the movement plan, and an environment of the robot using a neural network. Such a neural network is trained to determine the context of the portion of the movement plan given the data related to at least one of the robot, the task, the movement plan and the environment of the robot.

Another embodiment determines the context by identifying a tool or a tool category being used by the robot during the portion of the movement plan. In one such example embodiment, the identified tool or tool category indicates a specific operating torque and, in determining the context specific torque, the specific operating torque is determined to be the context specific torque.

Embodiments may also determine other context specific controls for the robot, including, velocity, acceleration, position, and jerk limits. One such example embodiment further comprises, based on the identified context, determining a context specific velocity and a context specific position limit for the at least one aspect of the robot while the robot executes the portion of the movement plan. According to one such embodiment, the context specific torque, the context specific jerk, the context specific acceleration, the context specific velocity, and the context specific position limit are computed by choosing values, i.e., limits, which, based on a probability distribution, have a probability of safe operation in accordance with a specified standard.

Embodiments may utilize a variety of techniques, alone, or in combination, to determine the context specific torque, the context specific jerk, context specific acceleration, context specific velocity, and the context specific position limit. An embodiment uses a monte carlo analysis that determines a stopping distance of the robot, a maximum allowed velocity of the robot, and a maximum allowed torque of the robot by simulating one or more of: (i) object collisions, (ii) object detection rates, (iii) communication failures, and (iv) camera failures. In such an embodiment, the context specific torque, the context specific jerk, the context specific acceleration, the context specific velocity, and the context specific position limit are based on the determined stopping distance, maximum allowed velocity, and maximum allowed torque. Another embodiment implements a non-linear trajectory optimization using a collision probability and severity distribution as a cost function to directly compute a trajectory of the robot during the portion of the movement plan which minimizes collision costs. In such an embodiment, the context specific torque, the context specific velocity, and the context specific position limit are based on the computed trajectory. According to an embodiment, the collision probability and severity distribution are generated from a simulation of possible ingressing objects, or from direct measurements of objects interacting with the robot. The results of the simulation or the measurements are used to create a set of possible objects, or a function is fit to the results of the simulation or the measurements to generate the collision probability and severity distribution.

In another embodiment, feed-forward torque is used to generate motion of the robot. Such an embodiment may further include using a low-gain feedback controller implementing the feed-forward torque to control tracking of the at least one aspect of the robot against a reference trajectory that is in accordance with at least one of the context specific position limit, the context specific velocity, acceleration, and the context specific torque. According to yet another embodiment, the context specific torque, the context specific velocity, and the context specific position are determined in accordance with velocity and torque limits required by a safety analysis and the feedback controller is designed based on tracking a desired trajectory of the robot and meeting the context specific torque, the context specific velocity, and the context specific position limit.

Yet another embodiment identifies the context of the portion of the movement plan by detecting, with at least one sensor, at least one obstacle in an environment of the robot. In such an embodiment, at least one of the context specific torque, the context specific jerk, context specific acceleration, the context specific velocity, and the context specific position limit are determined to avoid collision between the robot and the detected obstacle. According to another embodiment, identifying the context includes continuously computing a current stopping distance of the robot to evaluate an instantaneous torque limit, velocity limit, and acceleration limit based on appearance of previously unknown obstacles in an environment including the robot. In such an embodiment, the identified context includes the computed current stopping distance.

Another embodiment employs a feed-forward torque controller to generate motion of the robot. Such an embodiment uses a collision severity and probability density function as a cost function for the feed-forward torque controller to determine a trajectory of the robot which has a low probability of causing a collision, given a modeled likelihood of unknown objects appearing in a workspace of the robot.

As described herein, embodiments control at least one aspect of the robot. In embodiments, this “aspect” may be any aspect of the robot, such as a joint, a hydraulic system, an electric actuator, an air driven actuator, or an end effector tool, amongst other examples.

Another embodiment is directed to a system that includes a processor and a memory with computer code instructions stored thereon. In such an embodiment, the processor and the memory, with the computer code instructions, are configured to cause the system to implement any embodiments described herein.

Yet another embodiment is directed to a computer program product. The computer program product comprises a computer-readable medium with computer code instructions stored thereon where, the computer code instructions, when executed by a processor, cause an apparatus associated with the processor to perform any embodiments described herein.

In an embodiment, the method includes determining a context of a portion of a movement plan of a robot and determining an appropriate setting, e.g., velocity, acceleration, torque, and position, of an aspect of a robot. Certain contexts, such as moving in close proximity to obstacles where collision is likely because the obstacles have uncertain locations, movements, or accelerations, or maneuvering a dangerous end-effector close to a human co-worker, require limiting the robot operation, e.g., torque, to prevent injury. However, limits can be much higher when the robot is moving in contact with a stiff material, such as scooping frozen ice-cream, as long as no humans/obstacles are in harm's way of the robot exerting high torque. Embodiments can provide control to ensure safe operation under these robot operating conditions.

An impedance controller is capable of directing a robot to apply a specific force/torque at an end effector. It is also possible to generalize the impedance controller to control the force applied by any position of the robot that is in contact with another object, as long as the force/torque vector is within the control space of the robot. An embodiment uses an impedance controller to apply the force/torque which is specified by the robot motion plan and allowed by the context of the robot motion.

It is possible to control robot motor torque via feedback control, feed-forward control, or a combination of the two. According to an embodiment, in all cases of control (feedback and feed-forward), the amount of applied torque is limited by the physical constraints of the robot and safety considerations. There is a minimum torque required to move the robot along a given trajectory, and for each time-constrained robot motion, there also exists a minimum torque trajectory. In an embodiment, by computing the necessary feed-forward torque, the robot torque limit can be set to a value just above the minimum torque required. Therefore, the robot can meet safety standards while still continuing to operate to perform a task.

In an embodiment, in order to compute the feed-forward torque for a given action, it is necessary to model the expected resistance to be encountered during the motion. In an embodiment, the expected resistance is based on a model of an environment of the robot arm. In an embodiment, the context specific torque is loaded from a model of the robot arm (including moments of inertia, gravity, friction, stiction, motor performance, and controller response), the environment (viscosity, density, fluid-based drag), and intended contacts with objects and materials. In another embodiment, the context also includes distance from potential obstacles and likelihood of interaction with human co-workers. In regions where collision is unlikely, robot operations, e.g., torque and velocity constraints, can be relaxed to enable improved processing speed. By automatically determining these regions aka ‘the context’, embodiments can enable safe operation without tedious human, i.e., manual, design.

In an embodiment, identifying context of a portion of a movement plan includes determining likelihood of collision between the robot and an obstacle during the portion of the movement plan. According to one such embodiment, the likelihood of collision is determined by a probability distribution of the current location of objects in the environment or anticipated to be in the environment. This probability distribution can be represented as gaussian errors on the object pose (i.e., location in space), as output by a Bayesian filter (e.g., a Kalman Filter or its variants) or a probability density where colliding trajectories are scored based on the probability density of the objects with which they might collide. Potential obstacles in the environment may also be represented as a belief-space, e.g. a distribution or discrete set of possible states.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing will be apparent from the following more particular description of example embodiments, as illustrated in the accompanying drawings in which like reference characters refer to the same parts throughout the different views. The drawings are not necessarily to scale, emphasis instead being placed upon illustrating embodiments.

FIG. 1 is a block diagram illustrating an example embodiment of a quick service food environment of embodiments of the present disclosure.

FIG. 2 are images illustrating example applications of embodiments.

FIG. 3 is a flowchart of a method embodiment of the present disclosure.

FIG. 4 is flow diagram illustrating an example embodiment of a method of the present disclosure.

FIG. 5 depicts a computer network or similar digital processing environment in which embodiments of the present disclosure may be implemented.

FIG. 6 is a diagram of an example internal structure of a computer in the environment of FIG. 5.

DETAILED DESCRIPTION

A description of example embodiments follows.

As described herein, embodiments provide functionality for controlling robots based upon the context of the robot. Such functionality can be employed in any variety of environments in which robot control is desired, such as a quick service restaurant.

Operating a robot in a food preparation environment, such as a quick service restaurant, can be challenging for several reasons. First, the end effectors (e.g., utensils), that the robot uses need to remain clean from contamination. Contamination can include allergens (e.g., peanuts), dietary preferences (e.g., contamination from pork for a vegetarian or kosher customer), dirt/bacteria/viruses, or other non-ingestible materials (e.g., oil, plastic, or particles from the robot itself). Second, the robot should be operated within its design specifications, and not exposed to excessive temperatures or incompatible liquids, without sacrificing cleanliness. Third, the robot should be able to manipulate food stuffs, which are often fracturable and deformable materials, and further the robot must be able to measure an amount of material controlled by its utensil in order to dispense specific portions. Fourth, the robot should be able to automatically and seamlessly switch utensils (e.g., switch between a ladle and salad tongs). Fifth, the utensils should be adapted to be left in an assigned food container and interchanged with the robot as needed, in situ. Sixth, the interchangeable parts (e.g., utensils) should be washable and dishwasher safe. Seventh, the robot should be able to autonomously generate a task plan and motion plan(s) to assemble all ingredients in a recipe, and execute that plan. Eighth, the robot should be able to modify or stop a motion plan based on detected interference or voice commands to stop or modify the robot's plan. Ninth, the robot should be able to minimize the applied torque based on safety requirements or the task context or the task parameters (e.g., density and viscosity) of the material to be gathered. Tenth, the system should be able to receive an electronic order from a user, assemble the meal for the user, and place the meal for the user in a designated area for pickup automatically with minimal human involvement.

FIG. 1 is a block diagram illustrating an example embodiment of a quick service food environment 100 of embodiments of the present disclosure. The quick service food environment 100 includes a food preparation area 102 and a patron area 120.

The food preparation area 102 includes a plurality of ingredient containers 106 a-d each having a particular foodstuff (e.g., lettuce, chicken, cheese, tortilla chips, guacamole, beans, rice, various sauces or dressings, etc.). Each ingredient container 106 a-d stores in situ its corresponding ingredients. Utensils 108 a-d may be stored in situ in the ingredient containers or in a stand-alone tool rack 109. The utensils 108 a-d can be spoons, ladles, tongs, dishers (scoopers), spatulas, or other utensils. Each utensil 108 a-e is configured to mate with and disconnect from a tool changer interface 112 of a robot arm 110. While the term utensil is used throughout this application, a person having ordinary skill in the art can recognize that the principles described in relation to utensils can apply in general to end effectors in other contexts (e.g., end effectors for moving fracturable or deformable materials in construction with an excavator or backhoe, etc.); and a robot arm can be replaced with any computer controlled actuatable system which can interact with its environment to manipulate a deformable material. The robot arm 110 includes sensor elements/modules such as stereo vision systems (SVS), 3D vision sensors (e.g., Microsoft Kinect™ or an Intel RealSense™), LIDAR sensors, audio sensors (e.g., microphones), inertial sensors (e.g., internal motion unit (IMU), torque sensor, weight sensor, etc.) for sensing aspects of the environment, including pose (i.e., X, Y, Z coordinates and roll, pitch, and yaw angles) of tools for the robot to mate, shape and volume of foodstuffs in ingredient containers, shape and volume of foodstuffs deposited into food assembly container, moving or static obstacles in the environment, etc.

To initiate an order, a patron in the patron area 120 enters an order 124 in an ordering station 122 a-b, which is forwarded to a network 126. Alternatively, a patron on a mobile device 128 can, within or outside of the patron area 120, generate an optional order 132. Regardless of the source of the order, the network 126 forwards the order to a controller 114 of the robot arm 110. The controller generates a task plan 130 for the robot arm 110 to execute.

The task plan 130 includes a list of motion plans 132 a-d for the robot arm 110 to execute. Each motion plan 132 a-d is a plan for the robot arm 110 to engage with a respective utensil 108 a-e, gather ingredients from the respective ingredient container 106 a-d, and empty the utensil 108 a-e in an appropriate location of a food assembly container 104 for the patron, which can be a plate, bowl, or other container. The robot arm 110 then returns the utensil 108 a-e to its respective ingredient container 106 a-d, the tool rack 109, or other location as determined by the task plan 130 or motion plan 132 a-d, and releases the utensil 108 a-d. The robot arm executes each motion plan 132 a-d in a specified order, causing the food to be assembled within the food assembly container 104 in a planned and aesthetic manner.

Within the above environment, various of the above described problems can be solved. The environment 100 illustrated by FIG. 1 can improve food service to patrons by assembling meals faster, more accurately, and more sanitarily than a human can assemble a meal. Some of the problems described above can be solved in accordance with the disclosure below.

For instance, in the environment 100, it may be necessary for a human to be in close proximity with the robot arm 110. Embodiments of the present disclosure can be employed to limit robot functionality, e.g., torque, force, velocity, acceleration, and position based upon the context of the robot arm, e.g., when the robot is in close proximity to a human.

A robot may have several distinct modes of operation that each can employ different levels of torque. Such a robot would be improved from an approach to limit torque based on the current mode of the robot. As an example, a robot that scoops ice cream with a mechanical arm and a disher exerts high torque when the context is the actual scooping process (e.g., active contact with material) and needs significantly lower torque when the context is moving through free space. Setting a generic torque limit (e.g., maximum allowed torque) for one or more aspects of the robot (e.g., joints of the robot, the robot arm, or other mechanical components of the robot) is a standard safety feature, but these generic torque limits are static and do not change during operation of the robot. Embodiments improve on existing robots by providing context specific robot control. Further, embodiments can be used to stop a robot's motion when a context specific torque limit is exceeded.

Embodiments can operate in real-time by considering potential collisions with obstacles, the dynamic environment of the robot (e.g. contact vs. none, material through which motion is being executed), and potential hazardous scenarios, e.g., scenarios that are dangerous to humans, are considered. Additionally, possible interruptions of the robot motion, including unexpected entry of obstacles or human co-workers into the space are also represented in a monte-carlo simulation, as described herein, as low probability, but high consequence parts of the obstacle distribution. In embodiments, potential trajectories can be scored by their distance to collision with obstacles, by likelihood of event, and/or reaction time of a sensor system to detect the obstacle. Such embodiments thus determine reaction time of the robot to alter its plan (which allows for local velocity limits to allow for changing direction) and potential severity of the event. For example, a high velocity trajectory of a sharp utensil at head height is strongly discouraged (e.g., via a negative weighting of a trajectory with high velocity/torque, etc.) because of the potential for a human to enter the work zone and little available reaction time to avoid a potentially injurious contact.

Torque limits are a crucial safety feature of robots which operate in close proximity to people because torque limits prevent the robot from exerting pressures above safe values. The ISO standard, e.g., ISO/TS 15066 on Robots and Robotic Devices—Collaborative Robots (hereinafter “The ISO Standard”) describes safety standards on pressure applied by robots near humans. These safe pressure limits are based on the affected body part, the surface area of the tool/robot appendage (e.g., robot arm), the applied torque, and the momentum of the robot, when the robot or a part of the robot contacts a person.

Often tasks require tools having small surface areas (e.g., cutting utensils) and high torques. Current torque limiting technology prevents robots from performing these tasks while people are working in the vicinity of the robot (e.g., able to accidentally come in contact with the robot). Rather than simply providing a solution where a robot cannot perform a task in the vicinity of an obstacle, e.g., human, embodiments allow the robot's functionality, e.g., torque and velocity, to be dynamically adjusted based on the context of the robot. This functionality increases system safety by limiting the region where a robot can apply a torque that causes pressure above the ISO standard if a person contacts the robot.

Consider an ice cream scooping example where a robot uses a tool with a small surface area (e.g., disher) and a high torque task (e.g., the disher cutting through frozen ice cream) where high torque is needed to complete the task. Using standard tools to limit torque sets the torque limit to the maximum value expected during this task. In current systems, if the robot collides with an obstacle while moving through free space, the robot does not stop applying force until this large, and potentially unsafe, torque limit is reached, causing potential harm to the robot or the colliding object. In contrast, embodiments determine context specific torque limits to solve this problem. With a context specific torque limit, the context specific torque limit for traversing free space can be considerably lower than the context specific torque limit for the scooping process. Any accidental collision while the robot traverses free space, and therefore, is using the lower torque limit for that activity, is less destructive because the robot stops before exceeding the maximum safe pressure for that activity according to the ISO Standard (ISO/TS 15066). The context specific torque limit allows the robot to safely perform tasks in close proximity with people if the region where high torque is applied is inaccessible by the collaborative workers/human co-workers.

In another example of context specific torque limits, when the robot operates with a known model of its environment and obstacles therein, it can limit the torque and velocity of the robot based on distance to known obstacles, which allows for safer operation.

Embodiments provide functionality to control robot operation, e.g., torque and velocity, amongst other examples, based on context. The context can include current location of the robot, distance to collision, current velocity, and position in a motion plan (e.g., a plan that indicates the robot's location and path for movements through free space and the robot's contact with material, amongst other examples.

FIG. 2 shows images 220 a-c illustrating example applications of embodiments. Using embodiments, torque for the robot arm 221 can be controlled. In the image 220 a, the robot arm 221 with a scooping end-effector 222 is approaching the bin 223 to scoop ice cream. Using an embodiment, the force and torque to scoop ice cream is determined and the context of a portion of a movement plan to perform the ice cream scooping task is determined. In the example of the image of FIG. 220a , the robot arm 221 with the scooping end-effector 222 is approaching the bin 223 and, in such an example, the context for this “approaching” portion of the movement plan is determined to be operation in free space. Based on the identified torque and force to accomplish the task and the identified context, free space, a context specific torque for the robot arm 221 for the approaching portion is determined. As such, in the image 220 a, a low torque limit is applied while the robot arm 221 is in free space (e.g., before reaching the ice cream to be scooped).

In the picture 220 b, the robot arm 221 is actively scooping ice cream from the bin 223. Like the example described above in relation to the image 220 a, embodiments can be used to determine the context specific torque for the active scooping portion of the robot's movement plan. Using such methods, a high context specific torque is determined for the robot arm 221 while the robot arm 221 is actively scooping the ice cream as depicted in the image 220 b. As such, the robot arm 221 can be controlled to apply the high context specific torque while the robot arm 221 scoops the ice cream.

In the picture 220 c, the robot arm 221 with the scooping end effector 222 holding ice cream 224 is moving in free space. Again, using embodiments, the context of the robot for this portion of the movement plan is determined to be moving in free space holding the ice cream 224. As such, a low context specific torque that allows for moving the robot arm 221 with the end effector 222 holding the ice cream 224 is determined. Then, the robot arm 221 can be controlled to apply a low torque while the end effector 222 holding the ice cream 224 is in free space.

FIG. 3 is a flow chart of a method 330 for robot control according to an embodiment. The method 330 is computer, i.e., processor, implemented and may be performed via any combination of hardware and software as is known in the art. For example, the method 330 may be implemented via one or more processors with associated memory storing computer code instructions that cause the one or more processors to implement steps 331, 332, 333, and 334 of the method 330.

The method 330, at 331, identifies a force and torque for a robot to accomplish a task. According to an embodiment, at 331, the minimum force and torque needed to accomplish a task are determined. In an embodiment, the minimum force and torque are determined through either a physical model of the material and task which predicts the required robot joint torques or by performing the task with the robot and recording the required torque. The identified force and torque to accomplish the task can also be a sliding scale that is a function of how quickly the task needs to be accomplished. Further, in the embodiments, the “task” can be the task performed during the portion of the movement plan for which context specific torque is being determined.

To illustrate, returning to the ice cream scooping example described above in relation to FIG. 2, the maximum force and torque needed to scoop ice cream is detected at step 331. In an embodiment force and torque are vector quantities at a utensil, i.e., end effector, the force and torque are translated to scalar quantities (joint torques) for the robot due to its specific geometry. In such an embodiment, two robots with different geometries scooping ice cream will have the same force are torque at the utensil and different joint torques to accomplish the same task. In an embodiment, the force and torque determined at 331 are the force and torque for an end effector of the robot to accomplish a task. In other words, a tool force and tool torque may be determined at 331. For example, the force that needs to be exerted by the ice cream scoop to scoop ice cream. In an embodiment, pressure that needs to be exerted to accomplish the task is also determined. This pressure may be determined from the force.

Next, at 332, context of a portion of a movement plan indicating motion of the robot to perform the task is identified. Context may include any information related to the operation of the robot, such as, the likelihood of injury for the portion of the movement plan. To illustrate, returning to the ice cream scooping example of FIG. 2, in the example depicted in the image 220 a, it is determined that the context of the portion of the movement plan in the image 220 a is movement in free space.

To continue, at 333, based on the identified force, torque, and context, a context specific torque is determined for at least one aspect of the robot while the robot executes the portion of the movement plan. The context specific torque determined at 333 can also be based upon pressure that needs to be exerted by the robot to accomplish the task. To illustrate, in the ice cream scooping example in the image 220 a, a low context specific torque is determined because the robot is approaching the bin to scoop ice cream and, thus, only a force and torque needed to move the robot toward the bin is needed rather than the force and torque needed to scoop the ice cream. The context specific torque determined at 333 may be considered a joint torque, i.e., torque that is provided by a joint of the robot. The joint torque can be contrasted with the torque determined at 331, which may be an end effector torque.

Further, it is noted that embodiments are not limited to determine a single context specific torque. Instead, embodiments may determine a context specific torque for multiple aspects of the robot, e.g., each joint of the robot. In this way, a context specific torque can be determined for each joint of the robot so that the robot can accomplish the task, i.e., exert the torque and force needed to accomplish the task.

Returning to FIG. 3, to continue, a control signal is generated 334 for the at least one aspect of the robot to operate in accordance with the determined context specific torque. The control signal may take any form capable of controlling torque of the robot. In an embodiment, the control signal may command the position of the robot joints as a function of time with a maximum allowed torque to be used by a controller which moves the joints to their desired positions.

Another embodiment of the method 330 goes further and includes controlling the at least one aspect of the robot based on the control signal (determined at 334) to operate in accordance with the determined context specific torque. This may include limiting the at least one aspect of the robot to the determined context specific torque. In such an embodiment of the method 330, the robot's torque does not exceed the context specific torque for the portion of the movement plan.

In an embodiment, determining the context specific torque at 333 includes loading the context specific torque from a model of the robot, the task, and an environment in which the robot is operating to perform the task. In such an embodiment, the task is selected from a library of tasks, where the required torque is recorded. The model of the robot determines if the required torque can be achieved and if, given the environment, the robot is physically able to perform the task.

In embodiments, of the method 330 “context” may include any conditions related in any way to the robot. For example, context may include any data related to the robot, the task performed by robot, the motion of the robot, and the environment in which the robot is operating, amongst other examples. According to an example embodiment of the method 330, context is at least one of: (a) free space, (b) active contact, (c) collision, (d) anticipated collision, (e) a likelihood of accident during the portion of the movement plan based on standards for (1) speed and separation limits and (2) allowable harm, (f) the task performed by the robot, e.g., slicing, scooping, grasping, picking, or machining material, (g) a set of possible colliding objects, where each object has an object class, and the object class indicates a severity of a collision with the object, (h) a probability distribution of possible colliding objects, (i) a probability distribution of one or more possible world configurations, (j) a continuous distribution of world configurations, (k) a continuous distribution of objects, (l) a plane of motion of the robot, and (m) dimensions of the robot, amongst other examples. In embodiments, speed and separation limits and limits for allowable harm may be based upon industry standards and/or regulations such as ISO standard 15066.

In embodiments that utilize object class, the object class can indicate a type or category of an object and embodiments may modify operations based upon the object class. For example, if the class is a person, collision severity is high, i.e., there is a great possibility of harm. If, however, the object class is a balloon, and a collision occurs, the balloon will likely move and there will be no damage to the balloon or robot. In such an embodiment, based on the collision severity, and how the robot is moving in proximity to the object, the torque may be adjusted to avoid collision with that object, i.e., add more safety margin if the object is of high value, like a person) or increase likelihood of collision (reduce safety margin to gain speed if the object is robust, such as a table surface).

In an embodiment of the method 330 where the context is at least one of: (1) a probability distribution of possible colliding objects, (2) a probability distribution of one or more possible world, i.e., obstacle configurations, (3) a continuous distribution of world, i.e., obstacle configurations, and (4) a continuous distribution of objects, the distributions indicate probability of contact between the robot and objects during the portion of the movement plan. In embodiments, a plurality of these probability distributions can be utilized at a given time. These probability distributions can then be used in determining the context specific torque at 333. For example, if a distribution indicates that collision between the robot and an object is highly probable, torque and force of the robot can be limited to mitigate the impact of any such collision. On the other hand, if a distribution indicates that a collision between the robot and an object is highly unlikely, the context specific torque and force can be higher.

Embodiments of the method 330 may utilize a variety of different techniques to identify the context of the portion of the movement plan at 332. In an embodiment, the context is identified by determining a likelihood of accident during the portion of the movement plan based on standards and/or regulations. These standards may set values speed and separation limits and allowable harm.

Another embodiment identifies the context by identifying expected resistance encountered by the robot during the portion of the movement plan using a model of an environment of the robot. For example, the model of the environment may indicate that the robot is cutting a piece of steel and, thus, high resistance is expected. To illustrate another example, consider the task of scooping guacamole from a container. The robot is expected to need varying joint torques to be applied based on the dynamics of the robot and whether the robot is moving in free-space versus scooping the guacamole. The different contexts can be predicted by a dynamics models of the robot. When the robot is in contact with the material, i.e., any portion of the end effector is on or below the surface of the material (guacamole), the torque is expected to be higher and is based on material properties (viscosity, frictions, density, etc.) and the dynamics of the motion (how fast, what surface area of the tool is presented to the material).

Yet another embodiment identifies context by processing context data using a neural network trained to determine if contact occurs during the portion of the movement plan. In such an embodiment, the neural network is trained on labeled context data that is labelled to indicate if contact occurs under conditions of the labelled context data. Such an embodiment may then determine if contact between the robot and an object occurs during the portion of the movement plan or the robot is operating in free space. Embodiments may utilize any neural network architecture known in the art such as fully connected networks, and long-short-term memory recurrent neural network.

Another embodiment may consider labels on a trajectory of the robot, i.e., whether a portion of the trajectory is labeled “contact” versus “no-contact,” where “contact” allows for expected forces and torques to be exerted by the robot and “no-contact” does not. In such an embodiment, if, for example, context data indicates that contact is going to occur during a portion of a trajectory labelled “no-contact” at 333 when determining the context specific torque, the context specific torque may be lowered to prevent injuries caused by an unexpected contact.

According to another embodiment, identifying the context includes identifying physical objects in an environment of the robot to determine proximity of the robot to the physical objects during the portion of the movement plan. This may be done using a camera, depth sensor, lidar, or any other sensor know in the art that can detect objects in an environment. In such an embodiment, proximity can be based on the closest points of the objects.

Further, embodiments may determine the context at 332 by analyzing a computer based model of an environment of the robot to determine proximity of the robot to physical objects during the portion of the movement plan. In such an embodiment, proximity can be based on the closest points of the object and the robot represented in the model.

Yet another embodiment identifies the context by performing a computer-based simulation of an environment including the robot using (i) the movement plan, (ii) a computer-based model of the environment, and (iii) a computer-based model of the robot, to predict motion of the robot during the portion of the movement plan. Such an embodiment performs a simulation, e.g., a computer-aided design or computer-aided engineering simulation, or the like, to determine what occurs during the various portions of a movement plan of a robot. The results from such a simulation indicates the context of the portion of the movement plan. For instance, if in a large portion of the scenarios in the simulation, the robot made contact with an obstacle during a certain portion of the motion plan, then that portion would be considered to be high risk and require additional safety precautions or trigger more aggressive responses to human ingress or sound cues. Such an embodiment may also utilize models that are based on measured data of the environment.

Embodiments may also identify the context at 332 by processing data related to at least one of the robot, the task, the movement plan, and an environment of the robot using a neural network trained to determine the context of the portion of the movement plan given the data related to at least one of the robot, the task, the movement plan and the environment of the robot. Such a neural network can be trained using data collected from actions performed by a robot in a similar environment. In such an embodiment, the neural network can be trained to predict required and expected torque for a given trajectory. In an embodiment, these torques can indicate the context and can be used at 333 to determine the context specific torque.

Further, yet another embodiment of the method 330 determines the context at 332 by identifying a tool or a tool category being used by the robot during the portion of the movement plan. According to an embodiment, the tool may be identified by processing an image using a neural network classifier, reading a 2D graphic or text label, RFID, or human input. In an example embodiment, the identified tool or tool category may indicate a specific operating torque and, in determining the context specific torque at 333, the specific operating torque is determined to be the context specific torque. To illustrate, consider the example where the robot is using a specialized wrench for tightening bolts on a carbon fiber component. At 332, it can be identified that this specialized wrench is being used and, the specialized wrench can only be used at torques up to 15 N-m. Then, at 333, the context specific torque can be determined to be 15 N-m. It is noted that in such an embodiment, the context specific torque may still be limited by context, such as, whether there is a likelihood of collision.

Embodiments of the method 330 may also determine other context specific controls for the robot. One such example embodiment determines, based on the context identified at 332, a context specific velocity and a context specific position limit for the at least one aspect of the robot while the robot executes the portion of the movement plan. According to one such embodiment, the context specific torque, the context specific velocity, and the context specific position limit are computed by choosing limits which, based on a probability distribution, have a probability of safe operation in accordance with a specified standard or regulation. For example, embodiments may consider ISO standards that indicate the acceptable probability of collisions and the safe distance between a robot and an obstacle, e.g., human. In such an example of the method 330, the context specific torque, velocity, and position limit are determined at 333 to be in accordance with the ISO standard. Determining the probability of safe operation may consider a plurality of factors, such as communication lags (e.g., whether a robot is slow to receive or does not receive a message), camera failure rate (camera does not function), multiple camera reliability (what to do when cameras disagrees), errors in obstacle detection, speed, and separation limited as required by standards or regulations.

Embodiments of the method 330 may utilize a variety of techniques alone, or in combination to determine the context specific torque, the context specific velocity, and the context specific position limit.

One such embodiment uses a monte carlo analysis that determines a stopping distance of the robot, maximum allowed velocity of the robot, and maximum allowed torque of the robot by simulating one or more of: (i) object collisions, (ii) object detection rates, (iii) communication failures, and (iv) camera failures. In such an embodiment, the context specific torque, the context specific velocity, and the context specific position limit are based on the determined stopping distance, maximum allowed velocity, and maximum allowed torque.

Another embodiment implements a non-linear trajectory optimization using a collision probability and severity distribution as a cost function to directly compute a trajectory of the robot during the portion of the movement plan which minimizes collision costs. Such an embodiment uses non-linear optimization mathematical tools to minimize a function which correlates collision probability with a numerical score of collision severity which is determined by the user. According to an embodiment, the context specific torque, the context specific velocity, and the context specific position limit are based on the computed trajectory. For instance, the computed trajectory has a context specific torque, context specific velocity, and context specific position limit which are necessary to accomplish the trajectory and because the trajectory is based on minimizing collision costs, the torque, velocity, and position limit will likewise minimize collision costs.

In an embodiment that implements the non-linear trajectory optimization, the collision probability and severity distribution are generated from a simulation of possible ingressing objects, or from direct measurements of objects interacting with the robot. In such an embodiment, results of the simulation, or the measurements, are used to create a set of possible objects, or a function is fit to the results of the simulation or the measurements to generate the collision probability and severity distribution. In such an embodiment, data (measured data or from the simulations) is used to create scenarios against which collision costs can be computed. In embodiments described herein that utilize non-linear optimization or monte carlo analysis, the distribution of robot behavior and possible ingressing objects can be employed.

In another embodiment of the method 330, given the motion to be performed, and a physics-based model of the robot and the environment, the torque required for the motion can be predicted and recorded. This recorded torque can be used to generate motion of the robot and if the model of the robot and the environment is perfect, then no additional signals are required for the motion to be accomplished. In practice, the model is never perfect and thus additional corrections are often required. Such an embodiment may further include using a low-gain feedback controller to apply corrective torques to control tracking of the at least one aspect of the robot against a reference trajectory that is in accordance with context specific controls for the robot, such as a position limit, a velocity, an acceleration, and a torque. According to yet another embodiment, the context specific torque, the context specific velocity, and the context specific position are determined in accordance with velocity and torque limits required by a safety analysis. In such an embodiment, the feedback controller is designed based on tracking a desired trajectory of the robot and meeting the context specific torque, the context specific velocity, and the context specific position limit. According to an embodiment, the desired trajectory may be in accordance with robot acceleration and jerk limits.

Another embodiment of the method 330 identifies the context of the portion of the movement plan at 332 by detecting, with at least one sensor, at least one obstacle in an environment of the robot. In such an embodiment, at least one of the context specific torque, the context specific velocity, and the context specific position limit are determined at 333 to avoid collision between the robot and the detected obstacle. According to another embodiment, identifying the context at 332 includes continuously computing a current stopping distance of the robot to evaluate an instantaneous torque limit, velocity limit, and acceleration limit based on appearance of previously unknown obstacles in an environment including the robot. In such an embodiment, the context identified at 332 includes the computed current stopping distance.

Another embodiment employs a feed-forward torque controller to generate motion of the robot. Such an embodiment uses a collision severity and probability density function as a cost function for the feed-forward torque controller to determine a trajectory of the robot which has a low probability of causing a collision, given a modeled likelihood of unknown objects appearing in a workspace of the robot. This functionality for determining a trajectory may be used at 332 for determining the context of the robot. Then, knowing the trajectory of the robot has a low probability of collision, an appropriate torque can be determined at 333 in order to make the trajectory satisfy at least one criterion, such as execution time.

As described herein, embodiments control at least one aspect of the robot. In embodiments, this “aspect” may be any aspect of the robot, such as a joint, a hydraulic system, an electric actuator, an air driven actuator, or an end effector tool, amongst other examples.

Embodiments, such as the method 330 may also consider sound and context as described in U.S. Patent Application titled “Stopping Robot Motion Based On Sound Cues”, Attorney Docket No. 5000.1056-000 when identifying context of a portion of a movement and when determining context specific controls for the robot. Likewise, in embodiments, context may also include predicted motion of objects as described in U.S. Patent Application titled “Robot Interaction With Human Co-Workers”, Attorney Docket No. 5000.1057-001. Similarly, embodiments may consider modified motion of a robot as described in U.S. Patent Application titled “Stopping Robot Motion Based On Sound Cues”, Attorney Docket No. 5000.1056-000 and U.S. Patent Application titled “Robot Interaction With Human Co-Workers”, Attorney Docket No. 5000.1057-001 when determining context specific controls for a robot as described herein.

FIG. 4 is a flow diagram illustrating an example embodiment of a method 440 of the present disclosure. Based on a model of a robot environment (448), the method determines a context of a portion of a movement plan of a robot arm based on resistance (442). The resistance is determined based on the model (448). Based on the determined context, the method applies context specific torque to at least one aspect (e.g., joint, hydraulic force, end effector unit) of the robot arm (444). The method then executes a portion of the movement plan while applying the context specific torque (446).

In an embodiment of the present disclosure, based on a dynamic model of the robot, a feed-forward torque (e.g., the minimum required torque to move the robot forward at a given velocity) is computed for movement in free space. From this calculated feed-forward torque, an embodiment can detect collisions. Such an embodiment can further compare the robot position with an expected position reached by applying this calculated feed-forward torque. Therefore, an accidental collision is detected as deviations from the expected robot position. Alternatively, a collision can be detected during robot movement by means of measuring the external torques (e.g., difference between applied torque and measured torque) of the robot joints by means of embedded joint torque sensors.

Once a collision is detected, robot movement can be stopped. Optionally, a safe zero-torque command with gravity compensation can be issued. In this state, the robot can be moved away from the obstacle by hand. In cases where the robot can pinch a body part, this is a safer solution than solely halting the robot motion, because the robot can be manually maneuvered away from the pinched body part.

Furthermore, robot torque and velocity can be limited based on the current velocity and distance to collision with static obstacles based on a model of the environment with known obstacles. In such an embodiment, the robot can be controlled so that the robot does not exert torque when a collision with an obstacle is predicted or anticipated. Optionally, moving obstacles can be detected by means of a sensor or array of sensors. Maximum allowed acceleration can also be calculated as a function of distance to collision and weighted by a probability distribution of a potential obstacle being present.

In an embodiment, from a given distance to collision dx, of a newly sensed obstacle, a dynamic model of the robot translates to a local maximum allowed torque to avoid a high probability of collision. The robot may reduce its velocity in order to have sufficient margin to stop before collision if the motion of the object is not known. For example, when a human (or other object) moves into the path of the robot while the robot is executing a trajectory, the robot slows to a halt as the distance to collision approaches zero. The robot can either wait for the human/obstacle to move out of the planned path, or plan a new trajectory. If a collision cannot be avoided by applying the maximum negative acceleration of the robot joint(s), an emergency stop command may be issued that triggers the robot emergency brake.

Embodiments can also modify robot operations based on a pre-computed motion plan. For instance, the robot torque and velocity can be limited based on the position of the robot in the pre-computed motion plan. To illustrate, for a robot scooping ice cream, the part of the trajectory that involves expected contact with the ice cream can have a pre-computed torque limit that is higher than while the robot is traversing free space.

Alternatively, the robot torque and velocity can be dynamically set in real-time based on current robot location (e.g. position of the end effector tool) and a model of the environment. In the ice cream scooping example, the torque limit is set higher when the position of the end effector tool is inside the ice cream bin. However, this can change dynamically, as the amount of material in the bin can change. For example, when scooping a full bin, the robot torque would need to be high when entering the bin containing the ice cream. However, in a mostly empty bin, low torque can be used inside of the volume of the bin until the scooper contacts the ice cream. A model of the shape of the remaining ingredients (e.g., ice cream) can be used as the context and, thus, to inform the amount of torque applied (i.e., the context specific torque), where each subsequent scoop or other action of the same ingredient or material may have a different context specific torque.

A system embodiment includes a robot arm with optional embedded torque sensors. A controller, processor, database, or other module can include a dynamic model of a robot. The model of the robot includes context specific torques to apply at each robot joint or other motor. The system can further include a model of the environment that represents known obstacles. The model of the environment can dynamically change as obstacles and the environment change. A system embodiment may also include a robot arm controller that, optionally, accepts torque and velocity limits as dynamic settings. The system can further optionally include sensors to detect moving obstacles, and in response, those detections dynamically change the environment model. Such a sensor can be a structured light depth camera, sonar, radar, lidar, stereo vision, or RGB camera from which depth is inferred.

In contrast with embodiments, existing methods set the torque limit while traversing free space to be the torque required to move each respective joint at maximum velocity. In contrast, context specific torque limits determined in embodiments provide a simpler, less conservative, and safer approach than computing the torque limit at each time step using the minimum required torque for a given trajectory as the torque limit.

Existing methods do not disclose system embodiments, method embodiments, or solutions described herein. For example, existing solutions stop a robot only after sensing a collision with a foreign object. Some current industrial robotics applications detect when a human enters a robot operating zone and halt motion, or provide physical barriers that protect workers from the robot, but do not allow humans to work in the vicinity of the robot (see, e.g., “The Shrinking Footprint of Robot Safety” from Robotic Industries Association, Robotics Online, https://www.robotics.org/content-detail.cfm/Industrial-Robotics-Industry-Insights/The-Shrinking-Footprint-of-Robot-Safety/content id/5059).

An advantage of an embodiment is that employing context to dynamically set robot operations, e.g., torque and velocity, and restricting the area where high torque can be exerted, allows for closer collaboration between robot and human co-workers while mitigating the risk of bodily damage. Existing methods stop robot motion when a collision occurs or is likely to occur, or stop robot motion entirely when a human is in the vicinity of the robot. An improvement of embodiments is dynamically limiting the torque the robot can exert while executing a trajectory, based on distance to collision.

Another advantage is that embodiments can switch the robot to zero torque mode with gravity compensation when a collision is detected. This allows the robot to be freely maneuvered by hand by simply pushing/exerting pressure on the robot arm. Gravity compensation is a force provided by one or more joints of the robot that counters the force of gravity on the robot, making the robot easier to move by a human. This approach is safer than bringing the robot to a rigid stop because the risk of crushing, pinching of body parts, or secondary contact injuries is reduced.

Embodiments can determine the context specific torque based on the likelihood of contact between the robot and an object. The likelihood of contact can be a product of speed and separation monitoring performed by a system in accordance with a standard, such as ISO 15066. For example, if the robot is holding a knife and moving through free space from a tool rack to a cutting board, the context specific torque can be limited by how quickly the robot can detect a person entering the workspace or if the workspace is gated. However, when the robot is in contact with a steak and no person is detected, the context specific torque can be set much higher to allow the robot to cut the steak.

Embodiments may also identify the required forces and torques to accomplish the task, identify the context, and determine the context specific torque using neural networks. In such an embodiment, neural networks can be trained using data collected from actions performed by a robot in a similar environment. In such an embodiment, the neural networks can be trained to predict required and expected torque for a given trajectory and these torques can be determined to be the required torques for the task. Similarly, a neural network can be trained to determine context, e.g., predict the likelihood of a dangerous event, based on context data. Such a neural network is trained using labelled example data from past operations of the robot. Likewise, a neural network can be trained to determine a context specific torque based on the determined force and torque to accomplish the task and the determined context.

FIG. 5 illustrates a computer network or similar digital processing environment in which embodiments of the present disclosure may be implemented.

Client computer(s)/devices 50 and server computer(s) 60 provide processing, storage, and input/output devices executing application programs and the like. The client computer(s)/devices 50 can also be linked through communications network 70 to other computing devices, including other client devices/processes 50 and server computer(s) 60. The communications network 70 can be part of a remote access network, a global network (e.g., the Internet), a worldwide collection of computers, local area or wide area networks, and gateways that currently use respective protocols (TCP/IP, Bluetooth®, etc.) to communicate with one another. Other electronic device/computer network architectures are suitable.

FIG. 6 is a diagram of an example internal structure of a computer (e.g., client processor/device 50 or server computers 60) in the computer system of FIG. 5. Each computer 50, 60 contains a system bus 79, where a bus is a set of hardware lines used for data transfer among the components of a computer or processing system. The system bus 79 is essentially a shared conduit that connects different elements of a computer system (e.g., processor, disk storage, memory, input/output ports, network ports, etc.) that enables the transfer of information between the elements. Attached to the system bus 79 is an I/O device interface 82 for connecting various input and output devices (e.g., keyboard, mouse, displays, printers, speakers, etc.) to the computer 50, 60. A network interface 86 allows the computer to connect to various other devices attached to a network (e.g., network 70 of FIG. 5). Memory 90 provides volatile storage for computer software instructions 92 and data 94 used to implement an embodiment of the present disclosure. Disk storage 95 provides non-volatile storage for computer software instructions 92 and data 94 used to implement an embodiment of the present disclosure. A central processor unit 84 is also attached to the system bus 79 and provides for the execution of computer instructions.

In one embodiment, the processor routines 92 and data 94 are a computer program product (generally referenced 92), including a non-transitory computer-readable medium (e.g., a removable storage medium such as one or more DVD-ROM's, CD-ROM's, diskettes, tapes, etc.) that provides at least a portion of the software instructions for an embodiment. The computer program product 92 can be installed by any suitable software installation procedure, as is well known in the art. In another embodiment, at least a portion of the software instructions may also be downloaded over a cable communication and/or wireless connection. In other embodiments, the invention programs are a computer program propagated signal product embodied on a propagated signal on a propagation medium (e.g., a radio wave, an infrared wave, a laser wave, a sound wave, or an electrical wave propagated over a global network such as the Internet, or other network(s)). Such carrier medium or signals may be employed to provide at least a portion of the software instructions for the present invention routines/program 92.

The teachings of all patents, published applications and references cited herein are incorporated by reference in their entirety.

While example embodiments have been particularly shown and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the embodiments encompassed by the appended claims. 

What is claimed is:
 1. A method comprising: identifying a force and torque for a robot to accomplish a task; identifying context of a portion of a movement plan indicating motion of the robot to perform the task; based on the identified force, torque, and context, determining a context specific torque for at least one aspect of the robot while the robot executes the portion of the movement plan; and generating a control signal for the at least one aspect of the robot to operate in accordance with the determined context specific torque.
 2. The method of claim 1, further comprising: based on the control signal, controlling the at least one aspect of the robot to operate by limiting the at least one aspect to the determined context specific torque.
 3. The method of claim 1, wherein determining the context specific torque comprises: loading the context specific torque from a model of the robot, the task, and an environment in which the robot is operating to perform the task.
 4. The method of claim 1, wherein identifying the context of the portion of the movement plan comprises at least one of: determining a likelihood of accident during the portion of the movement plan based on standards for (i) speed and separation limits and (ii) allowable harm; identifying expected resistance encountered by the robot during the portion of the movement plan using a model of an environment of the robot; processing context data using a neural network, trained on labeled context data indicating if contact occurs under conditions of the labeled context data, to determine if contact occurs during the portion of the movement plan; identifying physical objects in an environment of the robot to determine proximity of the robot to the physical objects during the portion of the movement plan; analyzing a computer based model of an environment of the robot to determine proximity of the robot to physical objects during the portion of the movement plan; performing a computer-based simulation of an environment including the robot using (i) the movement plan, (ii) a computer-based model of the environment, and (iii) a computer-based model of the robot, to predict motion of the robot during the portion of the movement plan; processing data related to at least one of the robot, the task, the movement plan and an environment of the robot using a neural network trained to determine the context of the portion of the movement plan given the data related to at least one of the robot, the task, the movement plan and the environment of the robot; and identifying a tool or a tool category being used by the robot during the portion of the movement plan.
 5. The method of claim 4, wherein the identified tool or tool category indicates a specific operating torque and where, in determining the context specific torque, the specific operating torque is determined to be the context specific torque.
 6. The method of claim 1, wherein the identified context is at least one of: (a) free space, (b) active contact, (c) collision, (d) anticipated collision, (e) a likelihood of accident during the portion of the movement plan based on standards for (1) speed and separation limits and (2) allowable harm, (f) the task performed by the robot, (g) a set of possible colliding objects, where each object has an object class, and the object class indicates a severity of a collision with the object, (h) a probability distribution of possible colliding objects, (i) a probability distribution of one or more possible world configurations, (j) a continuous distribution of world configurations, and (k) a continuous distribution of objects.
 7. The method of claim 6, wherein at least one of the probability distribution of possible colliding objects, the probability distribution of one or more possible world configurations, the continuous distribution of world configurations, and the continuous distribution of objects indicate probability of contact between the robot and objects during the portion of the movement plan.
 8. The method of claim 1, further comprising: based on the identified context, determining a context specific velocity and a context specific position limit for the at least one aspect of the robot while the robot executes the portion of the movement plan.
 9. The method of claim 8, wherein the context specific torque, the context specific velocity, and the context specific position limit are computed by choosing limits which, based on a probability distribution, have a probability of safe operation in accordance with a specified standard.
 10. The method of claim 8, wherein the context specific torque, the context specific velocity, and the context specific position limit are determined using at least one of: a monte carlo analysis that determines a stopping distance of the robot, maximum allowed velocity of the robot, and maximum allowed torque of the robot by simulating one or more of object collisions, object detection rates, communication failures, and camera failures, wherein the context specific torque, the context specific velocity, and the context specific position limit are based on the determined stopping distance, maximum allowed velocity, and maximum allowed torque; and a non-linear trajectory optimization using a collision probability and severity distribution as a cost function to directly compute a trajectory of the robot during the portion of the movement plan which minimizes collision costs wherein the context specific torque, the context specific velocity, and the context specific position limit are based on the computed trajectory.
 11. The method of claim 10, wherein the collision probability and severity distribution is generated from a simulation of possible ingressing objects, or from direct measurements of objects interacting with the robot, wherein results of the simulation or the measurements are used to create a set of possible objects, or a function is fit to the results of the simulation or the measurements to generate the collision probability and severity distribution.
 12. The method of claim 8 wherein feed-forward torque is used to generate motion of the robot and the method further comprises: using a low-gain feedback controller implementing the feed-forward torque to control tracking of the at least one aspect of the robot against a reference trajectory that is in accordance with at least one of the context specific position limit, the context specific velocity, acceleration, and the context specific torque.
 13. The method of claim 12, wherein the context specific torque, the context specific velocity, and the context specific position are determined in accordance with velocity and torque limits required by a safety analysis and the feedback controller is designed based on tracking a desired trajectory of the robot and meeting the context specific torque, the context specific velocity, and the context specific position limit.
 14. The method of claim 8, wherein: identifying the context of the portion of the movement plan includes detecting, with at least one sensor, at least one obstacle in an environment of the robot; and wherein, at least one of the context specific torque, the context specific velocity, and the context specific position limit are determined to avoid collision between the robot and the detected obstacle.
 15. The method of claim 1, wherein identifying the context comprises: continuously computing a current stopping distance of the robot to evaluate an instantaneous torque limit, velocity limit, and acceleration limit based on appearance of previously unknown obstacles in an environment including the robot, wherein the identified context includes the computed current stopping distance.
 16. The method of claim 1, wherein a feed-forward torque controller is employed to generate motion of the robot and the method further comprises: using a collision severity and probability density function as a cost function for the feed-forward torque controller, determining a trajectory of the robot which has a low probability of causing a collision, given a modeled likelihood of unknown objects appearing in a workspace of the robot.
 17. The method of claim 1, wherein the at least one aspect of the robot is one of a joint, a hydraulic system, an electric actuator, an air driven actuator, or an end effector tool.
 18. A system comprising: a processor; and a memory with computer code instructions stored thereon, the processor and the memory, with the computer code instructions, being configured to cause the system to: identify a force and torque for a robot to accomplish a task; identify context of a portion of a movement plan indicating motion of the robot to perform the task; based on the identified force, torque, and context, determine a context specific torque for at least one aspect of the robot while the robot executes the portion of the movement plan; and generate a control signal for the at least one aspect of the robot to operate in accordance with the determined context specific torque.
 19. The system of claim 18 wherein the processor and the memory, with the computer code instructions, are further configured to cause the system to: based on the control signal, control the at least one aspect of the robot to operate by limiting the at least one aspect to the determined context specific torque.
 20. A non-transitory computer program product comprising a computer-readable medium with computer code instructions stored thereon, the computer code instructions being configured, when executed by a processor, to cause an apparatus associated with the processor to: identify a force and torque for a robot to accomplish a task; identify context of a portion of a movement plan indicating motion of the robot to perform the task; based on the identified force, torque, and context, determine a context specific torque for at least one aspect of the robot while the robot executes the portion of the movement plan; and generate a control signal for the at least one aspect of the robot to operate in accordance with the determined context specific torque. 